package com.happy_lab_management.demo.admin.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.happy_lab_management.entity.Student;
import com.happy_lab_management.demo.admin.user.mapper.StudentMapper;
import com.happy_lab_management.demo.admin.user.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student>implements StudentService {
    @Autowired
    private StudentMapper studentMapper;

    public Student selectByUserId(Integer userId) {
        return studentMapper.selectByUserId(userId);

    }
}
